$('#mytabs a').click(function (e) {
  e.preventDefault()
  $(this).tab('show')
})

$("input:radio[name=bitRate]").click(function(){
	var selectedBitRate = $(this).val();
	self.port.emit("setBitRate",selectedBitRate);
});

/* bitRateValue1 = $("#bitRateSelector").val();
bitRateValue2 = $("#bitRateSelector1").val();

if( bitRateValue1 == "")
{
	var bitRate = $("#bitRateSelector1");
	console.log("in 1");
	bitRate.bind("change", function(){
	self.port.emit("setBitRate",bitRate.val());
	});
}
else if (bitRateValue2 == "")
{
	var bitRate = $("#bitRateSelector");
	console.log("in 2");
	bitRate.bind("change", function(){
	self.port.emit("setBitRate",bitRate.val());
	});
} */

